#ifndef TEAM_H
#define TEAM_H

#include <vector>
#include <string>
#include "Player.h"
#include "Event.h"
#include "Shot.h" 
#include "Rebound.h"
#include "Foul.h"
#include "Violation.h"
#include "Steal.h"
#include "Jumpball.h"

class Team
{
public:
 Team();
 Team(string TeamName);

 //Print stuff
 void displayPointsByPer(int per);
 void displayPointsByPlayer();
 void showLiveStats();

 //get stuff
 int getPoints();
 string getName();
 Player getPlayer(int JerseyNum); 
 int getViolations();
 double getShotPercent(int selectPoints);
 Time getPossessionStartTo(Time endingTime); 
 int getFouls(int selectPlayer);
 int getBonus(int period);
 bool getPossess();
//Set stuff
 void incPts(int points,int number);
 void addPlayer(int jerseyNum);
 void addPlayer(int jerseyNum,string name);
 void setName(string TeamName);
 void addPoints(Shot * ptrToShot);
 void addTeamEvent(Event *someEvent);
 bool addTime(Event * ptrToEvent);
 void setPossess(bool hasPossess);
 string checkUpcomingFTShooter();
private:
  Time m_posTime,m_prevTime;
  string m_name;
  char m_abbrev_name; 
  int currentPoints;
  vector <Player> players;
  vector <Event*> teamEvents;
  bool m_hasBall;
};

#endif
